package com.jg.service;

import com.jg.comm.responce.PageResult;
import com.jg.model.dto.InventoryQuery;
import com.jg.model.entity.Inventory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jg.model.vo.InventoryVo;

import java.util.List;

/**
 * <p>
 * 库存表 服务类
 * </p>
 *
 * @author 86130
 * @since 2025-09-19 11:21
 */
public interface InventoryService extends IService<Inventory> {
    //分页展示库存列表
    PageResult<InventoryVo> pageList(InventoryQuery inventoryQuery);

    //获取低于预警数量的库存列表
    List<InventoryVo> getLowWarningInventoryList();
    // 检查库存并发送预警
    void checkInventoryAndSendWarning();
}
